function SearchAllRegistryKeys()
{
    $os = Get-WMIObject win32_operatingsystem
    [bool] $found = $False;
    
    # Search in 32bits software folder
    $found = Test-Path 'HKLM:SOFTWARE\Microsoft\Office\Excel\Addins\SQLServer.DMClientXLAddIn\';    
    if($found) {return $found;}
    
    #Search in 64 bit keys folders
    if ($os.OSArchitecture -eq "64-bit") {
        #Wow folder, 64 bits
        $found = Test-Path 'HKLM:SOFTWARE\Wow6432Node\Microsoft\Office\Excel\Addins\SQLServer.DMClientXLAddIn\';    
        if($found)  {return $found;}
    }
	
	return $found;
}


SearchAllRegistryKeys;
